(function () {
    angular.module('app')
        .controller('proController', proController);

    proController.$inject = ['$scope'];
    function proController($scope) {


        $scope.toLoginPage = function () {
            $scope.ons.navigator.pushPage('pages/login/login.html');
        };

        $scope.toServicesPage = function () {
            $scope.ons.navigator.pushPage('pages/service/services.html');
        };


        $scope.toRegisterPage = function () {
            $scope.ons.navigator.pushPage('pages/user/register.html');
        };

        $scope.toForgetPwdPage = function () {
            $scope.ons.navigator.pushPage('pages/user/forget-pwd.html');
        };

        $scope.toOrderStatusPage = function () {
            $scope.ons.navigator.pushPage('pages/order/order-status.html');
        };

        $scope.toReservePage = function () {
            $scope.ons.navigator.pushPage('pages/service/reserve.html');
        };

        $scope.toAnswerMapPage = function () {
            $scope.ons.navigator.pushPage('pages/service/call-map.html');
        };

        $scope.toCarPosPage = function () {
            $scope.ons.navigator.pushPage('pages/service/car-position.html');
        };

        $scope.toOrderListLogoutPage = function () {
            $scope.ons.navigator.pushPage('pages/order/order-list-logout.html');
        };

        $scope.toOrderListPage = function () {
            $scope.ons.navigator.pushPage('pages/order/order-list.html');
        };

        $scope.toOrderDetailPage = function () {
            $scope.ons.navigator.pushPage('pages/order/order-detail.html');
        };

        $scope.toOrderAdditionPage = function () {
            $scope.ons.navigator.pushPage('pages/order/order-addition.html')
        }

        $scope.toCarSelectorPage = function () {
            $scope.ons.navigator.pushPage('pages/car/brand-selector.html');
        };

        $scope.toAccidentAgentPage = function () {
            $scope.ons.navigator.pushPage('pages/service/accident-agent.html');
        };

        $scope.toOnePayResultPage = function () {
            $scope.ons.navigator.pushPage('pages/order/1-order-result.html');
        };

        $scope.toPaymentSummaryPage = function () {
            $scope.ons.navigator.pushPage('pages/payment/payment-summary.html');
        };

        $scope.toPaymentResultPage = function () {
            $scope.ons.navigator.pushPage('pages/payment/payment-result.html');
        };

        $scope.toSuggestPage = function () {
            $scope.ons.navigator.pushPage('pages/other/suggestion.html');
        };
    }


})();